from mongoengine import *

class User(Document):
	username = StringField()
	email = EmailField()
	password = StringField()

class Profile(Document):
	"""
		An example Profile model that handles storing the oauth_token and
		oauth_secret in relation to a user. Adapt this if you have a current
		setup, there's really nothing special going on here.
	"""
	user = ReferenceField(User)
	oauth_token = StringField(max_length = 200)
	oauth_secret = StringField(max_length = 200)
